package design_pattern.strategy;

/**
 * Created by WeiDingKuo on 2017/10/27 9:48
 */
public class Context {
    private Strategy strategy;

    public Strategy getStrategy() {
        return strategy;
    }

    public void setStrategy(Strategy strategy) {
        this.strategy = strategy;
    }

    public void dosomething() {
        this.strategy.dosomething();
    }
}
